<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>奇偶数判断</title>
</head>
<body>
    <!-- 判断一个整数是偶数还是奇数，并输出结果
- 数字 % 2 == 0 证明是个偶数 -->
</body>
<script>
    (function () {
        let num = 23;
        if (num % 2 == 0) console.log('该数为偶数');
        else console.log('该数为奇数');




    })();
</script>
</html>